#include "stdafx.h"
#include "CNewContact.h"
#include "CGraphicMgr.h"
CNewContact::CNewContact(WCHAR * name):IStatu(name)
{
}

CNewContact::~CNewContact(void)
{
}

 bool CNewContact::EnterStatu()
 {
	 return false;
 }


bool CNewContact::ExitStatu()
{
	return false;
}

bool CNewContact::EvaluateClickEvent(const WCHAR* elementName)
 {
	
     if (wcscmp(elementName,L"Weather_statu") == 0)
	 {


		 CTemperatureInfo *pTempratureInfo=(CTemperatureInfo*)GRAPHICMGR.GetElement(L"TempratureInfo");

		 		pTempratureInfo->setvalue(g_pSeries->GetWeatherReport());
				 pTempratureInfo->setvisible(true);
		 KillTimer(GRAPHICMGR.GetWnd(),WEATHER_TIPS); 
		 SetTimer(GRAPHICMGR.GetWnd(),WEATHER_TIPS,5000,OnWeatherTipsCount);
        GRAPHICMGR.SetUpdateElements(L"TempratureInfo");

		 return true;
	}
	 return false;
 }
